package com.csdj.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * Author : 今晚几点睡_Ada
 * Date: 2022/9/7
 * Time: 9:50
 * 注:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="实体类的通用父类", description="")
public class BaseEntity {

    @ApiModelProperty(value = "日志-创建人")
    private String createdUser;

    @ApiModelProperty(value = "日志-创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "日志-最后修改执行人")
    private String modifiedUser;

    @ApiModelProperty(value = "日志-最后修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;
}
